//
//  SKTestViewController.m
//  SouthKoreaDoorLock
//
//  Created by Umeinfo on 2018/1/20.
//  Copyright © 2018年 andy90s. All rights reserved.
//

#import "SKTestViewController.h"
#import "SKBaseNavigationController.h"
#import "RootViewController.h"


@interface SKTestViewController ()

@end

@implementation SKTestViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(100, 100, 100, 100)];
    button.backgroundColor = [UIColor redColor];
    [button addTarget:self action:@selector(testPush) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button];
    self.navigationController.navigationBarHidden = YES;
    self.tabBarController.tabBar.hidden = YES;
}

- (void)testPush {
    UITabBarController *tab = [UITabBarController new];
    tab.viewControllers = @[[[SKBaseNavigationController alloc] initWithRootViewController:[RootViewController new]]];
    [self.navigationController pushViewController:tab animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
